﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入传菜或者炒菜");
            string s = Console.ReadLine();
            Robot a = Text(s);
            a.Working();
        }

        public static Robot Text(string s)
        {
            Robot t;
            if (s=="炒菜")
            {
                t = new CookRobot("大厨", dishname.青椒炒肉);
            }
            else if (s=="传菜")
            {
                t = new DeliveryRobot("助手", 4);
                return t;
            }
            else
            {
                t = new CookRobot("大厨", dishname.东北水饺);
                return t;
            }
        }
    }
}
